package br.ita.doacoes.core.controledoacoes;

import javax.persistence.EntityManager;

import javax.persistence.EntityManagerFactory;

import javax.persistence.Persistence;


public class JPAUtil {
	

	private static EntityManagerFactory emf;
	

	static {

		emf = Persistence.createEntityManagerFactory("doacoes");

	}



	public static EntityManager getEntityManager() {

		return emf.createEntityManager();

	}

}

